import { default as request, cloud } from '@/framework/utils/request'

export default ({
  // 线索产业分布
  getClueDataPie(data) {
    return request({
      url: `${cloud.investment}/cockpitAnalyse/clueDataPie`,
      method: 'post',
      data
    })
  },
  // 专班项目分布
  getDedicatedProject(data) {
    return request({
      url: `${cloud.investment}/cockpitAnalyse/dedicatedProject`,
      method: 'post',
      data
    })
  },
  // 班组考评
  getAssessmentTable(data) {
    return request({
      url: `${cloud.investment}/cockpitAnalyse/assessmentTable`,
      method: 'post',
      data
    })
  },
  // 计划总投资
  getInvestmentPlan(data) {
    return request({
      url: `${cloud.investment}/cockpitAnalyse/investmentPlan`,
      method: 'post',
      data
    })
  },
  // 当年投资额
  getInvestmentFixed(data) {
    return request({
      url: `${cloud.investment}/cockpitAnalyse/investmentFixed`,
      method: 'post',
      data
    })
  },
  // 当年投资额折线图
  getInvestmentFixedLine(data) {
    return request({
      url: `${cloud.investment}/cockpitAnalyse/investmentFixedLine`,
      method: 'post',
      data
    })
  },
  // 专班招引数额
  getInduceDistribution(data) {
    return request({
      url: `${cloud.investment}/cockpitAnalyse/induceDistribution`,
      method: 'post',
      data
    })
  },
  // 引资完成占比
  getInvestmentProportion(data) {
    return request({
      url: `${cloud.investment}/cockpitAnalyse/investmentProportion`,
      method: 'post',
      data
    })
  },
  // 项目完成占比
  getProjectProportion(data) {
    return request({
      url: `${cloud.investment}/cockpitAnalyse/projectProportion`,
      method: 'post',
      data
    })
  },
  // 街道柱状图
  getBuildingBarChart(data) {
    return request({
      url: `${cloud.investment}/cockpitAnalyse/buildingBarChart`,
      method: 'post',
      data
    })
  },
})
